package cn.hy.demo;

import cn.hy.demo.service.DemoService;
import cn.hy.mvc.anno.TinyAutowired;
import cn.hy.mvc.anno.TinyController;
import cn.hy.mvc.anno.TinyRequestMapping;

/**
 * @Author huang.xy
 * @Description TODO
 */
@TinyController
@TinyRequestMapping("/demo")
public class DemoController {

    @TinyAutowired
    DemoService demoService;

    @TinyRequestMapping("/query")
    public String query() {
        System.out.println("执行到了这里... ");
        return demoService.query("1");
    }
}
